package linkedlisttostack;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * 测试双向链表实现的栈
 */
public class Test {
    public static void main(String[] args) {
        LinkedStack linkedStack = new LinkedStack();
        linkedStack.push(1);
        linkedStack.push(2);
        linkedStack.push(3);
        linkedStack.push(4);
        linkedStack.push(5);
        while (linkedStack.size() != 0){
            System.out.println(linkedStack.pop());
        }
    }
}
